import { Component, Input, EventEmitter, Output } from '@angular/core';

interface goods {
  id: number;
  name: string;
  price: number;
  img: string;
}

@Component({
  selector: 'app-goods',
  templateUrl: './goods.component.html',
  styleUrls: ['./goods.component.scss'],
})
export class GoodsComponent {
  public goodsList: goods[] = [
    { id: 0, name: '新年美装低价钜献', price: 29, img: '1' },
    { id: 1, name: '美邦轻薄羽绒服', price: 99, img: '2' },
    { id: 2, name: '韩版中长款棉衣', price: 128, img: '3' },
    { id: 3, name: '丝绒半身裙', price: 138, img: '4' },
    { id: 4, name: '高领长毛款0', price: 158, img: '5' },
    { id: 5, name: '高领长毛款1', price: 159, img: '6' },
    { id: 6, name: '高领长毛款2', price: 219, img: '7' },
  ];

  public clickItem(index: number) {
    this.goodsList.splice(index, 1);
  }
  // @Input() title: string;
}
